package com.stdio.modle;


import java.util.List;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;


public class TestActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.main);
        
        //TextView display = (TextView)findViewById(R.id.mydisplay);
        String dataString = "";
        PBInfor pi = new PBInfor(this);
        List<PeopleInfo> pl = pi.getContactsList();
        for (int i = 0; i < pl.size(); i++) {
        	PeopleInfo pinfo = (PeopleInfo)pl.get(i);

			dataString = dataString + pinfo.getPhone() + "||";
			dataString = dataString + pinfo.getEmail() + "||";
			dataString = dataString + pinfo.getDisplayName() + "||";
			dataString = dataString + pinfo.getContactId() + "||";
			dataString = dataString + pinfo.getAddress() + "\n";
		}

        
        //`display.setText(dataString);
    }

}